<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>HSF Opcode Definition</title>
</head>
<body bgcolor="#ffffff">
&nbsp;
<center><table BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="580" >
<tr>
<td>
      <H2><FONT color=#0000a0 face="arial,helvetica,sans-serif">TKE_Image</FONT></H2>
      <H3><FONT color=#0000a0 face="arial,helvetica,sans-serif">Opcode</FONT><STRONG><FONT face="arial,helvetica,sans-serif">
      <TABLE border=0 height=90 width=530>   
        <TR>
          <TD height=12 width=131>ASCII</TD>
          <TD height=12 width=390>i</TD></TR>
        <TR>
          <TD height=12 width=131>Hexadecimal</TD>
          <TD height=12 width=390>69</TD></TR>
        <TR>
          <TD height=12 width=131>Decimal</TD>
          <TD height=12 width=390>105</TD></TR></TABLE></H3>
      <P>&nbsp;</P></FONT></STRONG>
      <H3><FONT color=#0000a0 face="arial,helvetica,sans-serif">Operands </FONT></H3>
      <P><FONT face="Courier New,Courier,typewriter">
	  <STRONG>Point</STRONG>&nbsp;position, 
	  <STRONG>Byte</STRONG>&nbsp;format, 
      <STRONG>[Byte</STRONG>&nbsp;name_length<STRONG>]</STRONG>,
      <STRONG>[(</STRONG><EM>name_length</EM><STRONG>)xByte</STRONG>&nbsp;name<STRONG>]</STRONG>,
      <STRONG>Long</STRONG>&nbsp;width,
      <STRONG>Long</STRONG>&nbsp;height,
	  <STRONG>Byte</STRONG>&nbsp;compression,
      <STRONG>Variable</STRONG>&nbsp;data
	  </FONT></P>

<FONT face="arial,helvetica,sans-serif">	  
<table BORDER =1 WIDTH="530">
<tr>
	<td WIDTH="131" HEIGHT="21">position</td>
	<td WIDTH="390" HEIGHT="21">reference point for the image</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">format</td>
	<td WIDTH="390" HEIGHT="21">type of image data and options</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">name_length</td>
	<td WIDTH="390" HEIGHT="21">length of name string, present if Image_Is_Named bit set in format</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">name</td>
	<td WIDTH="390" HEIGHT="21">name associated with image, present if Image_Is_Named bit set in format</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">width</td>
	<td WIDTH="390" HEIGHT="21">number of pixel columns in image</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">height</td>
	<td WIDTH="390" HEIGHT="21">number of pixel wors in image</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">compression</td>
	<td WIDTH="390" HEIGHT="21">type of data compression used on image data</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">data</td>
	<td WIDTH="390" HEIGHT="21">image contents</td>
	</tr>
</table>
 <P>&nbsp;</P></FONT>

<H3><FONT color=#0000a0 face="arial,helvetica,sans-serif">Notes</FONT></H3>
<font face="arial,helvetica,sans-serif">An image is inserted into the currently open segment.<p>
The only <em>compression</em> currently supported is "none" (0).  <em>Data</em> is arranged per-pixel,
starting at the upper-left and moving right, then moving down to successive rows.  The amount of data per pixel
is shown in the following table.  Pixels in mapped images are indices into the appropriate color map.  The order
of bytes in non-mapped formats is as shown.<p>

	<table BORDER =1 WIDTH="350">
	<TR>
		<TD height=21 width=50>Format</TD>
		<TD height=21 width=190>Description</TD>
		<TD height=21 width=120>Bytes per pixel</TD>
		</TR>
	<tr>
		<td WIDTH="50" HEIGHT="21">0</td>
		<td WIDTH="190" HEIGHT="21">Mapped 8</td>
		<td WIDTH="120" HEIGHT="21">1</td>
		</tr>
	<tr>
		<td WIDTH="50" HEIGHT="21">1</td>
		<td WIDTH="190" HEIGHT="21">Mapped 16</td>
		<td WIDTH="120" HEIGHT="21">2</td>
		</tr>
	<tr>
		<td WIDTH="50" HEIGHT="21">2</td>
		<td WIDTH="190" HEIGHT="21">RGB</td>
		<td WIDTH="120" HEIGHT="21">3</td>
		</tr>
	<tr>
		<td WIDTH="50" HEIGHT="21">3</td>
		<td WIDTH="190" HEIGHT="21">RGBA</td>
		<td WIDTH="120" HEIGHT="21">4</td>
		</tr>
	<tr>
		<td WIDTH="50" HEIGHT="21">4</td>
		<td WIDTH="190" HEIGHT="21">BGRA</td>
		<td WIDTH="120" HEIGHT="21">4</td>
		</tr>
	</table>

</font>
<hr WIDTH="100%">
</td>
</tr>
</table></center>
<script language="JavaScript">
<!--

	function doClick (name) {
		top.frames["logo"].loadByName(name);
	}

//-->
</script>
</body>
</html>
